package com.itheima.thread02;

public class ThreadTest {
    public static void main(String[] args) {
        MyThread mt = new MyThread();

        //创建三个Thread类的对象，
        // 把MyThread对象作为构造方法的参数，并给出对应的窗口名称
        Thread t1 = new Thread(mt,"窗口1:");
        Thread t2 = new Thread(mt,"窗口2:");
        Thread t3 = new Thread(mt,"窗口3:");

        t1.start();
        t2.start();
        t3.start();
    }
}
